package cn.yudao.ymcc.dto;

import cn.yudao.ymcc.result.PageList;
import cn.yudao.ymcc.searchDoc.CourseDoc;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

@Data
@NoArgsConstructor
public class ElasticSearchListDto extends PageList {

    private Map<String, List<AggregationDto>> map;

    public ElasticSearchListDto(long totalElements, List<CourseDoc> content, Map<String, List<AggregationDto>> map) {
        super(totalElements,content);
        this.map = map;
    }
}
